export const CafeBrewMethodsFilter={
  methods:{
      processCafeBrewMethodsFilter:function (cafe,brewMethods) {
          if(brewMethods.length>0){
                var cafeBrewMethods = [];
                for(var i=0;i<cafe.brew_methods.length;i++){
                    cafeBrewMethods.push(cafe.brew_methods[i].method)
                }
                for(var i=0;i<brewMethods.length;i++){
                    if(cafeBrewMethods.indexOf(brewMethods[i])>-1){
                        return true;
                    }
                }
                return false;
          }else {
              return true;
          }
      }
  }
};
